package com.e3.basdoc.employeecls.client;

import com.e3.basdoc.employeecls.model.EmployeeClsModel;
import com.e3.template.tgf.TGFEditorDialog;
import com.e3.template.tgf.TGFSimpleFormPanel;
import com.e3.web.core.client.GwtAsyncCallback;

public class EmployeeClsEditorDialog extends TGFEditorDialog<EmployeeClsModel> {
	
	private EmployeeClsRPCServiceAsync service = EmployeeClsRPCService.Util.getInstance();

	@Override
	public TGFSimpleFormPanel<EmployeeClsModel> createFormPanel() {
		return new EmployeeClsFormPanel();
	}

	@Override
	public void executeNewService(final EmployeeClsModel model, GwtAsyncCallback<EmployeeClsModel> callback) {
		service.newEmployeeCls(model, callback);
	}

	@Override
	public void executeModifyService(final EmployeeClsModel model, GwtAsyncCallback<EmployeeClsModel> callback) {
		service.modifyEmployeeCls(model, callback);
	}

	@Override
	public String[] getNotNullFieldNames() {
		return EmployeeClsHelper.INSTANCE.getNotNullFieldNames();
	}


}
